function setSiderBar(urlcode, url) {
    $("div.panel-collapse.in").removeClass("in");
    urlcode = parseInt(urlcode)
    console.log(urlcode)
    if (urlcode == 0) {
        $("#collapseOne").addClass("in");
    } else if (urlcode == 1) {
        console.log('two')
        $("div#collapseTwo").addClass("in");
    } else if (urlcode == 2) {
        $("div#collapseThree").addClass("in");
    }
    window.location.href = url

}


function allCheck(name, boolValue) {
    var allvalue = document.getElementsByName(name);
    for (var i = 0; i < allvalue.length; i++) {
        if (allvalue[i].type == "checkbox")
            allvalue[i].checked = boolValue;
    }
}


function reserveCheck(name) {
    var revalue = document.getElementsByName(name);
    for (i = 0; i < revalue.length; i++) {
        if (revalue[i].checked == true)
            revalue[i].checked = false;
        else
            revalue[i].checked = true;
    }
}
